﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Stack>" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	编辑堆场
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>基本信息</span></a></li>
                <li><a href="/Stack/Weather/<%=ViewData["id"] %>"><span>气象信息</span></a></li>
                <li><a href="/Stack/Stack/<%=ViewData["id"] %>"><span>堆场信息</span></a></li>
                <li><a href="/Stack/Pool/<%=ViewData["id"] %>"><span>调节水池</span></a></li>
                <li><a href="/Stack/Material/<%=ViewData["id"] %>"><span>材料信息</span></a></li>
                <li><a href="/Stack/Settle/<%=ViewData["id"] %>"><span>沉降模型</span></a></li>
                <li><a href="/Stack/Piezometer/<%=ViewData["id"] %>"><span>测压井测压仪</span></a></li>
                <li><a href="/Stack/Drain/<%=ViewData["id"] %>"><span>导渗系统</span></a></li>
                <li><a href="/Position/List?type=1&stackId=<%=Model.Id%>&factoryId=<%=Model.FactoryId%>"><span>上传图片</span></a></li>
	        </ul>
	    </div>
	</div>

    <% using (Html.BeginForm("Edit", "Stack", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.Id) %>
            
    
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px;">
        <tr>
            <th colspan="2">堆场信息</th>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">所属公司：</td>
            <td>
                <%= Html.DropDownList("FactoryId", ViewData["factories"] as List<SelectListItem>, "请选择公司")%>
                <%= Html.ValidationMessageFor(model => model.FactoryId) %>
            </td>
        </tr>

        <tr>
            <td class="lab">堆场名称：</td>
            <td>
                <%= Html.TextBoxFor(model => model.Name, new { size = "60" })%>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </td>
        </tr>

        <tr>
            <td class="lab">堆场位置：</td>
            <td>
                <%= Html.TextBoxFor(model => model.Address, new { size = "60" })%>
                <%= Html.ValidationMessageFor(model => model.Address) %>
            </td>
        </tr>

        <tr>
            <td class="lab">地理坐标：</td>
            <td>
                <%= Html.TextBoxFor(model => model.GeoPosition, new { size = "60" })%>
                <%= Html.ValidationMessageFor(model => model.GeoPosition) %>
            </td>
        </tr>

        <tr>
            <td class="lab">堆场描述：</td>
            <td>
                <%= Html.TextAreaFor(model => model.Description, new { cols = "68" , rows = "8" })%>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </td>
        </tr>

        <tr>
            <td class="lab">图片上传：</td>
            <td>
                <p>
                    <label>堆场总图：</label>
                    <input type="file" size="54" id="SummaryPic" name="fileSummaryPic" /><%if(!string.IsNullOrEmpty((string)ViewData["SummaryPic"])) {%> <label class="icon_12"><a href="<%=Url.Content((string)ViewData["SummaryPic"]) %>" target="_blank">查看原图</a><%} %></label>
                </p>
                <p style="margin-top:5px;">
                    <label>进浆点号：</label>
                    <%= Html.TextBoxFor(model => model.FlowNo, new { size = "54" })%>
                    <%= Html.ValidationMessageFor(model => model.FlowNo)%>
                </p>
                <p style="margin-top:5px;">
                    <label>进浆点图：</label>
                    <input type="file" size="54" id="FlowInPic" name="fileFlowInPic" /><%if(!string.IsNullOrEmpty((string)ViewData["FlowInPic"])) {%> <label class="icon_12"><a href="<%=Url.Content((string)ViewData["FlowInPic"]) %>" target="_blank">查看原图</a><%} %></label>
                </p>
                <p style="margin-top:5px;">
                    <label>　图片一：</label>
                    <input type="file" size="54" id="Pic1" name="filePic1" /><%if(!string.IsNullOrEmpty((string)ViewData["Pic1"])) {%> <label class="icon_12"><a href="<%=Url.Content((string)ViewData["Pic1"]) %>" target="_blank">查看原图</a><%} %></label>
                </p>
                <p style="margin-top:5px;">
                    <label>　图片二：</label>
                    <input type="file" size="54" id="Pic2" name="filePic2" /><%if(!string.IsNullOrEmpty((string)ViewData["Pic2"])) {%> <label class="icon_12"><a href="<%=Url.Content((string)ViewData["Pic2"]) %>" target="_blank">查看原图</a><%} %></label>
                </p>
                <p style="margin-top:5px;">
                    <label>　图片三：</label>
                    <input type="file" size="54" id="Pic3" name="filePic3" /><%if(!string.IsNullOrEmpty((string)ViewData["Pic3"])) {%> <label class="icon_12"><a href="<%=Url.Content((string)ViewData["Pic3"]) %>" target="_blank">查看原图</a><%} %></label>
                </p>
            </td>
        </tr>

    </table>

    
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px; margin-top:8px;">
        <tr>
            <th colspan="2">运营信息</th>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">使用年限：</td>
            <td>
                <%= Html.TextBoxFor(model => model.LifeTime, new { style = "width:50px; text-align:center;" })%>年
                <%= Html.ValidationMessageFor(model => model.LifeTime) %>
            </td>
        </tr>

        <tr>
            <td class="lab" style="width:130px;">开始运营时间：</td>
            <td>
                <%= Html.TextBoxFor(model => model.BeginYear, new { style = "width:40px; text-align:center;" })%>年 <%= Html.TextBoxFor(model => model.BeginMonth, new { style = "width:40px; text-align:center;" })%>月
                    <%= Html.ValidationMessageFor(model => model.BeginYear) %>
                    <%= Html.ValidationMessageFor(model => model.BeginMonth) %>
            </td>
        </tr>

    </table>

    <div class="submit_btn_area" style="margin-left:142px;">
        <input type="submit" value="提 交" />
    </div>


    <% } %>
</asp:Content>